﻿using System;

namespace MvePublicService.ClipOperations
{
	/*
	 * 日本SGI株式会社
	 * ヨハンソン・ヘンリク
	 * johansson@sgi.co.jp
	 * 
	 * Change Log:
	 * ---------------------------------------------------------------------------
	 * 2009.01.07	Johansson Henrik		Class Created.
	 * 
	 */

	/// <summary>
	/// Object view of a Clip entry in the Database.
	/// Use this class to represent a single Clip from the Databse.
	/// </summary>
	/// <seealso cref="ClipLoader"/>
	/// <remarks>INSERT:Creds</remarks>
	internal class Clip : IComparable<Clip>
	{
		public int Id { get; set; }
		public string Title { get; set; }
		public string Author { get; set; }
		public int TotalTime { get; set; }
		public DateTime OnAirDate { get; set; }
		public string Url { get; set; }

		#region IComparable<Segment> Members

		public int CompareTo(Clip other)
		{
			return this.Title.CompareTo(other.Title);
		}

		#endregion
	}
}
